package string;

import java.util.Arrays;

/**斯不瑞次      额瑞斯
 * String[] split(String regex)
 * 将当前字符串中满足正则表达式(regex)的部分进行拆分，将拆分出的以String[]形式返回
 * */
public class SplitDemo {
    public static void main(String[] args) {
        String line = "zxc123zxc345qwer34tyh";
        String[] data = line.split("[0-9]+");
        System.out.println(Arrays.toString(data));

        line = "123.456.78";
        String[] data1 =line.split("\\.");
        System.out.println(Arrays.toString(data1));

        line = "=zxc=asd==qwe=====";
        String[] data2 = line.split("=");
        System.out.println(Arrays.toString(data2));

    }
}
